<?php
$dbhost = 'localhost';
$dbuser = 'DcabUser';
$dbpassword = 'dcab';
$db = 'dcabdb';
$sqldumppath = 'C:\wamp\bin\mysql\mysql5.5.24\bin\mysqldump';
$backupfile = 'C:\wamp\www\DCAB\file.sql';

exec($sqldumppath.' --user='.$dbuser.' --password='.$dbpassword.' --host='.$dbhost.' '.$db.' > '.$backupfile);

?>
